package vip.kqsy.cloud.blog.server.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.kqsy.cloud.core.web.req.ReqPage;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class ListBlogInfoDTO extends ReqPage {
    /**
     * 最热
     */
    public static final Integer HOTTEST = 2;
    /**
     * 最新
     */
    public static final Integer NEWEST = 1;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "排序方式，1：最新，2：最热", required = true)
    @NotNull
    private Integer orderType;

    @ApiModelProperty(value = "月份，yyyy-MM")
    private String month;

}
